<template>
    <div>
        <span v-fontSize v-color>这是一个组件</span>
    </div>
</template>

<script setup>
const vColor={
    // mounted(el) {
    //     el.style.color="red"
    // },
    mounted:el=>{
         el.style.color="yellow"
    }
}
</script>

<style lang="scss" scoped>

</style>